package com.netinfo.learning.consumer.controller;

import com.netinfo.learning.consumer.service.ConsumerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

@RestController
public class ConsumerController {

    @Autowired
    private ConsumerService consumerService;
    @RequestMapping("/request")
    public  String consumerRequest(){
        String result = consumerService.testMethod();
        return  result;
    }
}
